pull: Fix leak of refs_to_fetch
authorAlexander Larsson <alexl@redhat.com>
Fri, 10 Jun 2016 10:13:23 +0000 (12:13 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 10 Jun 2016 11:12:59 +0000 (11:12 +0000)
Closes: #333
Approved by: giuseppe

src/libostree/ostree-repo-pull.c

index c28596ffcaeb3be96a3534ab56361376a7d29e1b..53847340cf227267aae8e31183132f80afda5d8e 100644 (file)
@@ -2182,7 +2182,7 @@ ostree_repo_pull_with_options (OstreeRepo             *self,
   guint64 end_time;
   OstreeRepoPullFlags flags = 0;
   const char *dir_to_pull = NULL;
-  char **refs_to_fetch = NULL;
+  g_autofree char **refs_to_fetch = NULL;
   char **override_commit_ids = NULL;
   GSource *update_timeout = NULL;
   gboolean disable_static_deltas = FALSE;